package com.hn.mapper;

import com.hn.pojo.Emp;
import com.hn.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface LoginMapper {
//    @Select("select * from emp where username=#{username} and password=#{password}")
//    Emp login(Emp emp);

    @Select("select * from user where name=#{username} and password=#{password}")
    User login(User user);
}
